package DuiXiang.src.ch10;

import java.util.Scanner;

public class LeShiTVTest {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        RemoteControl r = new TVRemote("乐视", "黑", 108, 100);
        TV t = new LeShiTV("黑", 5999, 100, "乐视", r);
        System.out.println(t.toString());
        t.play();
        ((LeShiTV) t).turnOn();
        ((LeShiTV) t).changeChannel();
        ((LeShiTV) t).turnOff();
    }
}
